package com.wenan.ui.controls.dateChooser
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	import flash.display.Shape;
	import flash.geom.Matrix;
	import flash.geom.Rectangle;
	
	import mx.core.EdgeMetrics;
	import mx.core.IChildList;
	import mx.core.IContainer;
	import mx.core.IRawChildrenContainer;
	import mx.core.mx_internal;
	import mx.graphics.BitmapFill;
	import mx.skins.halo.PanelSkin;
	import mx.skins.spark.DateChooserSelectionIndicatorSkin;
	
	public class DateChooserSelectionIndicatorSkinEx extends DateChooserSelectionIndicatorSkin
	{
		[Embed(source="assets/btn_bg.png")]
		private var backgroundImageClass:Class;

		public function DateChooserSelectionIndicatorSkinEx()  
		{  
			super(); 
		}  
		
		override protected function updateDisplayList(w:Number, h:Number):void 
		{	
			super.updateDisplayList(w,h);
			
			var source:Object = backgroundImageClass;
			if (source)
			{
				graphics.clear();
				var b:BitmapFill = new BitmapFill();
				b.source = source;
				b.begin(graphics,new Rectangle(0,0,w,h),null);
				graphics.drawRect(0,0,w,h);
				b.end(graphics);	
			}
		}
	}

}